package financial.sharing.center.system.model.entity;

import financial.sharing.center.common.base.BaseEntity;
import financial.sharing.center.common.enums.EnableStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @ClassName CompanyAccount
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ToString
@Entity
public class CompanyAccount extends BaseEntity {

    /**账户id*/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**公司名称*/
    private String companyName;
    /**纳税人识别号*/
    private String invoiceTaxNumber;
    /**开票地址*/
    private String invoiceAddress;
    /**开票电话*/
    private String invoicePhone;
    /**开户行名称*/
    private String invoiceDepositBank;
    /**开票银行账号*/
    private String invoiceBankAccount;
    /**可用性*/
    private Integer enableStatusValue;

    public CompanyAccount() {

    }

    public CompanyAccount(String companyName, String invoiceTaxNumber, String invoiceAddress, String invoicePhone, String invoiceDepositBank, String invoiceBankAccount) {
        this.companyName = companyName;
        this.invoiceTaxNumber = invoiceTaxNumber;
        this.invoiceAddress = invoiceAddress;
        this.invoicePhone = invoicePhone;
        this.invoiceDepositBank = invoiceDepositBank;
        this.invoiceBankAccount = invoiceBankAccount;
        this.enableStatusValue = EnableStatusEnum.正常.getValue();
    }
}
